import React from 'react'
import './Seckill.css'
export default function Seckill(props) {
    let {getseckill}=props
    // console.log(getseckill)
    return (
        <div className='Seckill'>
            <h3>秒杀</h3>
            {
                getseckill?getseckill.map(item=>(
                    <div className='Seckill_box' key={item.id}>
                        <img src={item.img} alt=""/>
                        <ul>
                        <li>现价：{item.price}</li>
                        <li>原价：{item.market_price}</li>
                        <li>{item.goodsname}</li>
                        </ul>
                    </div>
                )):null
            }
        </div>
    )
}
